package com.example.vehicleservice.implements1;

import com.example.vehicleservice.bean1.*;
import com.example.vehicleservice.mapper1.NewCarMapper;
import com.example.vehicleservice.service1.NewCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NewCarServiceImpilements implements NewCarService {

    @Autowired
    private NewCarMapper newCarMapper;
    @Override
    public List<TripMetrics> getTripMetrics() {
        return newCarMapper.getTripMetrics();
    }

    @Override
    public List<Abonrmal> getAbonrmal() {
        return newCarMapper.getAbonrmaly();
    }

    @Override
    public List<OnlineCountResult> getOnlineCountResult() {
        return  newCarMapper.getOnlineCountResult();
    }

    @Override
    public List<AvgBatteryLevelResult> getAvgBatteryLevelResult() {
        return  newCarMapper.getAvgBatteryLevelResult();
    }

    @Override
    public List<HeatmapDataResult> getHeatmapDataResult() {
        return  newCarMapper.getHeatmapDataResult();
    }

    @Override
    public List<VehicleData> getVehicleData() {
        return  newCarMapper.getVehicleData();
    }
}
